﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace School.Pages.Teaching
{
    public partial class TE_Topic_Content : System.Web.UI.Page
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string Topic_id = Request.QueryString["id"].ToString();

                var quer = School.Teaching.Teaching.Get_Topic_ByTopic(Convert.ToInt32(Topic_id));

                if (quer.Count() > 0)
                {
                    lblTopic_Name.Text = quer.FirstOrDefault().Name;
                    content.InnerHtml = quer.FirstOrDefault().contents;

                }
            }


        }
    }
}